package com.guchenbo.example.lock;

import java.util.LinkedHashMap;
import java.util.Map;

/**
 * @Author guchenbo
 * @Date 2020/3/2.
 */
public class MyLinkedHashMap extends LinkedHashMap {

    public MyLinkedHashMap(int i, float v, boolean b) {
        super(i,v,b);
    }

    @Override
    protected boolean removeEldestEntry(Map.Entry eldest) {
        return super.size() > 3;
    }
}
